
/*
 * Copyright (C) 2010 Bitglue. All rights reserved.
 *
 * $Id: AdminUserDAO.java bself $
 */

package com.bitglue.hibernate.dao;

import com.bitglue.hibernate.model.AdminUser;

import java.util.Collection;

/**
 * AdminUserDAO supports CRUD operations.
 * @author Bryan Patrick Self
 */
public interface AdminUserDAO {

    // retrieval operations
    Collection<AdminUser> getAdminUsers();
    AdminUser getAdminUserById(int id);
    AdminUser getAdminUserByName(String username);

    // persist operations
    void storeAdminUser(AdminUser user);

    // delete operations
    void deleteAdminUserById(int id);
    void deleteAdminUser(AdminUser user);

}
